﻿
using CatUtils.Utils.SpecialUtils.View;
using System;
using System.Windows.Forms;

namespace RabbitDownload.WebSite.Ehentai
{
    public partial class EhentaiSingleControl : UserControl
    {
        public EhentaiSingleControl()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (MessageHelper.AlertNull(textBox1.Text))
                EHentaiScanner.SingLeArticleDownload(textBox1.Text);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            foreach (string line in richTextBox1.Lines)
            {
                if (line != "")
                    EHentaiScanner.SingLeArticleDownload(line);
            }
        }
    }
}